package homework;

public class Day02Homework1 {
    public static void main(String[] args) {
        //1)
        int a;
        int b,c,d;
        int a1 = 10;
        int b1;
        b1 = 20;
        int g = 1;
        int h = g+10;
        //System.out.println(h);
        g =g +10;
        //System.out.println(g);
        int _aw1,$we3,kid;
        //int 12sad,a*b;
        int age;
        int myClassRoom;

        //2)
        int Num1 = 3;
        int Num2 = 10;
        System.out.println(Num2/Num1);//3
        System.out.println(Num1/Num2);//0
        System.out.println(Num1/2.0);//1.5
        int e = 2147483647;//int max
        e = e+1;
        System.out.println(e);//int min
        //3
        long q1 = 10L;
        //long q2 = 10000000000;
        long q3 = 10000000000L;

        long q4 = 1000000000*2*10L;
        System.out.println(q4);
        long q5 = 1000000000*3*10L;
        System.out.println(q5);//不是300亿,先算前面的(超)再乘10L
        long q6 = 1000000000L*3*10;//在前面的数字后加L可以早点把数据转成long类型
        //4
        double aa = 3.1415;
        float bb = 3.1415F;

        double cc = 3.0, dd = 2.9;
        System.out.println(cc-dd);
        //5
        boolean w1 = true;
        boolean w2 = false;
        //boolean w3 = 232;
        //6
        char c1 = '女';
        char c2 = 'f';
        char c3 = '6';
        char c4 = '*';
        //char c5 = 女;
        //char c6 = '';
        //char c7 = '女性';
        char c8 = '\\';
        System.out.println(c8);
        int ab1 = 5;
        long ab2 = ab1;
        int ab3 = (int)ab2;
        long ab4 = 5;
        double ab5 = 5;

        long ff = 10000000000L;
        int gg = (int)ff;
        System.out.println(gg);
        double hh = 12.213;
        int i = (int)h;
        System.out.println(i);

        //8
        byte bb1 =3;
        byte bb2 =2;
        byte bb3 =(byte)(bb1+bb2);
        System.out.println(2+2);
        System.out.println(2+'2');
        System.out.println('2'+'2');



    }
}
